package models

type User struct {
	Username string `gorm:"type:varchar(100)" json:"username"`
	Password string `gorm:"type:varchar(100)" json:"password"`
}

// 登入
func (u *User) Login() error {
	return DB.Create(&u).Error
}
